package com.cy.pj.common.util;

import org.apache.shiro.SecurityUtils;

import com.cy.pj.sys.pojo.SysUser;

public class ShiroUtils {
	public static SysUser getUser() {
		SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
		return user;
	}
	
	public static String getUsername() {
		String username = getUser().getUsername();
		return username;
	}
}
